package com.gem.talkbase.bean;

import java.io.Serializable;

//聊天消息实体类
public class ChatMsg implements Serializable {
	 /**
	 * 
	 */
	
	private String userid;
	 private String msg;
	 private String date;
	 public String from;
	 private boolean isComMeg = true;// 是否为收到的消息
	 public ChatMsg(String name,String msg,String date){
		 this.userid= name;
			this.date = date;
			this.msg = msg;
	 }
	 public ChatMsg(String userid, String msg, String date, String from) {
	 this.userid=userid;
	 this.msg=msg;
	 this.date=date;
	 this.from=from;
	}
	 public ChatMsg() {

		}
	public ChatMsg(String name, String date, String text,
			boolean isComMsg) {
		super();
		this.userid= name;
		this.date = date;
		this.msg = text;
		this.isComMeg = isComMsg;
	}
	
	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public boolean getMsgType() {
		return isComMeg;
	}

	public void setMsgType(boolean isComMsg) {
		isComMeg = isComMsg;
	}
}